package com.zto.tx.app;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-12-23 21:41
 **/
//@Component
@Aspect
public class MyAspect {
    @Pointcut("execution(* com.zto.tx.*..*(..))")
    public void pointcut() {
    }

    @Before("pointcut()")
    public void beforeAspect() {
        System.out.println("before...");
    }

    @After("pointcut()")
    public void afterAspect() {
        System.out.println("after...");
    }
}
